package com.mars.push.core.service;

import com.mars.push.api.dto.MessageSearch;
import com.mars.push.core.channel.PushMessage;
import com.mars.push.core.entity.PushMessageEntity;

import java.util.List;

/**
 * @Author King
 * @create 2020/7/20 17:08
 */
public interface IPushMessageService {

    /**
     * 消息落地
     *
     * @param message
     */
    void createPushMessage(PushMessage message);


    /**
     * 消息列表
     *
     * @param search
     * @return
     */
    List<PushMessageEntity> listPushMessage(MessageSearch search);
}
